#ifndef TAGVIEW_H
#define TAGVIEW_H

#include "qpushbutton.h"
#include <QLabel>
#include <QModelIndex>
#include <QWidget>

namespace Ui {
class TagView;
}

class TagView : public QWidget
{
    Q_OBJECT

public:
    explicit TagView(int index,QString name,QModelIndex modelIndex,QWidget *parent = nullptr);
    ~TagView();

    QPushButton *btnTag;
    QPushButton *btnClose;
    QLabel *label;
    int index;
    QString name;
    QModelIndex modelIndex;

    void routerClick();

signals:
    void closeTag();
    void click();

private slots:
    void on_btn_tag_clicked();

    void on_btn_close_clicked();

private:
    Ui::TagView *ui;

};

#endif // TAGVIEW_H
